//
//  UITextField+Extension.swift
//  BEGlobalOiler
//
//  Created by KKING on 16/9/1.
//  Copyright © 2016年 Bullseye Energy pte ltd. All rights reserved.
//

import UIKit


extension UITextField {

    
    //创建textField的方法
    convenience init(placeholder:String?,fontSize:CGFloat,textAlign:NSTextAlignment){
        self.init()
        let textField = UITextField()
        textField.placeholder = placeholder
        textField.font = UIFont.systemFont(ofSize: fontSize)
        textField.textAlignment = textAlign
        textField.sizeToFit()
    }
}
